package com.xyz.service;

import com.xyz.util.dto.DataResult;
import com.xyz.util.dto.LoginInfo;

public interface RoleService {

    DataResult selectUserInfo(LoginInfo li) throws Exception;

    DataResult selectRole(LoginInfo li, int pageNum, int pageSize, String roleName) throws Exception;

    DataResult insertRole(LoginInfo li, String roleName) throws Exception;

    DataResult updateRole(LoginInfo li, long roleId, String roleName) throws Exception;

    DataResult deleteRole(LoginInfo li, long roleId) throws Exception;

    DataResult selectDirectoryByRoleId(LoginInfo li, long roleId) throws Exception;

    DataResult updateDirectoryByRoleId(LoginInfo li, long roleId, String directoryIds) throws Exception;

    DataResult selectUserByRoleId(LoginInfo li, int pageNum, int pageSize, long roleId) throws Exception;

    DataResult insertUserByRoleId(LoginInfo li, long roleId, String userIds) throws Exception;

    DataResult deleteUserByRoleId(LoginInfo li, long userId) throws Exception;

}
